class CreateChapters < ActiveRecord::Migration
  def self.up
    create_table :chapters do |t|
      t.string :name
      t.integer :story_id
      t.timestamps
    end
    remove_column :comics, :story_id
  end

  def self.down
    drop_table :chapters
    add_column :comics, :story_id, :integer
  end
end
